import * as cookie from '@/utils/cookie'

const cookieKey = "u_login_token";
function getToken(): string {    
    return cookie.get(cookieKey);
}

export function isLogin(): boolean {

    return getToken() != '';
}